package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 收银员
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2023-02-11 16:51:08
 */
@TableName("shouyinyuan")
public class ShouyinyuanEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public ShouyinyuanEntity() {
		
	}
	
	public ShouyinyuanEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
	@TableId
	private Long id;
	/**
	 * 收银账号
	 */
					
	private String shouyinzhanghao;
	
	/**
	 * 密码
	 */
					
	private String password;

	public String getCashierName() {
		return cashierName;
	}

	public void setCashierName(String cashierName) {
		this.cashierName = cashierName;
	}

	/**
	 * 收银姓名
	 */
					
	private String cashierName;

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * 年龄
	 */
					
	private Integer age;
	
	/**
	 * 性别
	 */
					
	private String gender;
	
	/**
	 * 手机
	 */
					
	private String phone;
	
	/**
	 * 照片
	 */
					
	private String zhaopian;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：收银账号
	 */
	public void setShouyinzhanghao(String shouyinzhanghao) {
		this.shouyinzhanghao = shouyinzhanghao;
	}
	/**
	 * 获取：收银账号
	 */
	public String getShouyinzhanghao() {
		return shouyinzhanghao;
	}
//	/**
//	 * 设置：密码
//	 */
//	public void setMima(String mima) {
//		this.mima = mima;
//	}
//	/**
//	 * 获取：密码
//	 */
//	public String getMima() {
//		return mima;
//	}
//	/**
//	 * 设置：收银姓名
//	 */
//	public void setShouyinxingming(String shouyinxingming) {
//		this.shouyinxingming = shouyinxingming;
//	}
//	/**
//	 * 获取：收银姓名
//	 */
//	public String getShouyinxingming() {
//		return shouyinxingming;
//	}
//	/**
//	 * 设置：年龄
//	 */
//	public void setNianling(Integer nianling) {
//		this.nianling = nianling;
//	}
//	/**
//	 * 获取：年龄
//	 */
//	public Integer getNianling() {
//		return nianling;
//	}
//	/**
//	 * 设置：性别
//	 */
//	public void setXingbie(String xingbie) {
//		this.xingbie = xingbie;
//	}
//	/**
//	 * 获取：性别
//	 */
//	public String getXingbie() {
//		return xingbie;
//	}
//	/**
//	 * 设置：手机
//	 */
//	public void setShouji(String shouji) {
//		this.shouji = shouji;
//	}
//	/**
//	 * 获取：手机
//	 */
//	public String getShouji() {
//		return shouji;
//	}
	/**
	 * 设置：照片
	 */
	public void setZhaopian(String zhaopian) {
		this.zhaopian = zhaopian;
	}
	/**
	 * 获取：照片
	 */
	public String getZhaopian() {
		return zhaopian;
	}

}
